﻿<%@ Page Title="" Language="C#" MasterPageFile="~/sellMain.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Newsell.Default" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="DefualtHead" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/Default.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">

    </script>
</asp:Content>
<asp:Content ID="DefualtCont" ContentPlaceHolderID="mainContentPlaceHolder" runat="server">
<form id="defaultForm" runat="server">
    <div id="main">
    <!-- h2 stays for breadcrumbs -->
    <h2><a href="Default.aspx" class="active">所有需求</a> &raquo; <a href="mycate.aspx?act=0">我的类目</a></h2>
        <asp:ScriptManager ID="ScriptManager_Default" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel_Default" runat="server"><ContentTemplate>
        <asp:Repeater ID="RepSellMain" runat="server">
            <ItemTemplate>
                <div class="divListUp clr"><div class="clr" id="fixIe6">
                    <div id="imgparent" class="imgparent" >
                        <img id="<%# "newimg" + Eval("id") %>" class="imgcss" src='<%# Eval("imgsrc")=="" ? "images/webkey_1_009.png":Eval("imgsrc") %>' alt="需求品缩略图" />
                     </div>
                    <div class="new_body">
                    <div class="clr">
                        <dl class="nDetail">
                            <dt class="newTitle"><a class="showdetail" href="javascript:;"><%# Eval("title").ToString().Trim().Length > 16 ? Eval("title").ToString().Trim().Substring(0, 14) + "..." : Eval("title").ToString().Trim() %></a><p class="Bid hidden"><%#Eval("Id")%></p></dt><br />
                            <dt>期望价格：</dt><dd class="poingFont"><%# Eval("ExpectpricesMax")%>~<%# Eval("ExpectpricesMin")%></dd><br />
                            <dt>特殊要求：</dt><dd class="poingFont"><%# Eval("Keyprop").ToString().Trim().Equals("") ? "" : Eval("Keyprop") + "，"%></dd><dd class="poingFont"><%# "送给" + Eval("Owner")%></dd>
                        </dl>
                        <div class="nInfo">
                            <h5>由<%# Eval("ReleaseName")%>发布</h5>
                            <h5><%# Eval("Starttime").ToString()%></h5>
                         </div></div>
                         <div class="new_foot">
                            <span>现在有<strong><%# Eval("Respondcount")%></strong>位淘友感兴趣</span>
                            <a class="goodlistopen" href='javascript:;'>发布商品</a>
                            <%--<a style="display:none;" href='javascript:Abox("sellGoodsel.aspx?binfo=<%# Eval("Id") %>")' style="background:'Css/screenPic/button.png' no-repeat;"><img src="images/button.png" alt="" /></a>--%>
                          </div>
                     </div></div>
                    <div class="new_detail_body">
                        <dl class="nDetail"><dt>希望商品所在城市：</dt><dd class="poingFont"><%# Eval("Province").ToString().Trim() == "" ? "随便那里都可以" : Eval("Province").ToString() +"  "+ Eval("City").ToString()%></dd><dd class="cutline"></dd><dt>想购买的数量：</dt><dd class="poingFont"><%# Eval("Count") %></dd></dl>
                        <div class="information">
                            <p>买家的留言：</p>
                            <%# Eval("Information").ToString() == "" ?"这位朋友很懒，什么都没写~": Eval("Information").ToString()%>
                        </div>
                    </div>
                 </div>   
            </ItemTemplate>
            <FooterTemplate>
                <asp:Label ID="lblEmpty" CssClass="emptyArea" Text="此条目下暂无记录！" runat="server" Visible='<%#RepSellMain.Items.Count == 0%>'></asp:Label>
            </FooterTemplate>
        </asp:Repeater>
        <div class="loading hidetxt hidden">Now Loading......</div>
        <iframe id="salegc" frameborder="0" scrolling="no" width="700px" height="300px" class="hidden"></iframe>
        <div id="mainpageer"><webdiyer:AspNetPager ID="listupPager" runat="server" CurrentPageButtonPosition="Center" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" onpagechanged="listupPager_PageChanged" PageIndexBoxType="TextBox" PageSize="6" PrevPageText="前页" ShowCustomInfoSection="Left" ShowPageIndexBox="Never" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" NumericButtonCount="4" CssClass="pagertext"></webdiyer:AspNetPager></div>
        </ContentTemplate>
            <triggers>
                <asp:AsyncPostBackTrigger ControlID="listupPager" EventName="PageChanged" />
            </triggers>
        </asp:UpdatePanel>
        
    </div></form>
</asp:Content>
